<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:pou="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <ui:composition>
            <style type="text/css">
                body{
                    font-size:10px !important;
                }
                .formloging {
                    background-image: url("#{resource['images:logincisco.png']}");
                    background-repeat: no-repeat;
                    height: 360px;
                    width: 590px;
                    padding-top: 120px;
                    padding-left: 20px;
                    margin-right: auto;
                    margin-left: auto;
                    color: #FFF;
                    font-family: Verdana, Geneva, sans-serif;
                }
                .logoempresa {
                    width: 100%;
                    height: 70px;
                    margin-top: 10px;
                    margin-bottom: 10px;
                }
                .row{
                    vertical-align: top; 
                    padding-right: 5px;
                }
            </style>
            <h:panelGroup layout="block" class="logoempresa">
                <h:panelGrid columns="3" rowClasses="row">
                    <h:graphicImage library="images" name="logospc.jpg" />
                    <h:graphicImage library="images" name="ealogo.png" />
                    <pou:panel rendered="#{usuario.loged}">
                        <h:panelGrid columns="6">
                            <h:outputText value="Usuario: "></h:outputText>
                            <h:outputText value="#{usuario.usuario}" /> 
                            <h:outputLink value="#{facesContext.externalContext.requestContextPath}/SessionManager">Salir</h:outputLink>
                            <pou:commandButton action="home" ajax="false" value="Inicio" rendered="#{usuario.permisoTodo}" />
                            <pou:commandButton action="usuarios" ajax="false" value="Usuarios" rendered="#{usuario.permisoTodo}" />

                        </h:panelGrid>
                    </pou:panel>
                </h:panelGrid>
            </h:panelGroup>
        </ui:composition>   
    </body>
</html>
